import http from '@/utils/http';



/**

添加知识点相似问 /qa/addSimilar  ✔✔✔
删除知识点相似问 /qa/delSimilar  ✔✔✔
添加知识点关联问 /qa/addRel  ✔✔✔
删除知识点关联问 /qa/delRel  ✔✔✔


添加图谱分类 /graph/category/add
删除图谱分类 /graph/category/del
新增节点相似问 /graph/node/addSimilar  ✔✔✔
删除节点相似问 /graph/node/delSimilar  ✔✔✔

添加多轮会话分类 /dialog/category/add
删除多轮会话分类 /dialog/category/delete

添加多轮会话相似问 /dialog/addSimilar  ✔✔✔
删除多轮会话相似问 /dialog/delSimilar  ✔✔✔

添加多轮会话节点 /dialog/node/add  ✔✔✔
删除多轮会话节点 /dialog/node/del  ✔✔✔

上传文档知识点 /doc/upload  ✔✔✔
自建文档知识点 /doc/addDoc  ✔✔✔
删除文档知识点 /doc/deleteDoc  ✔✔✔
添加文档知识点分类 /docCategory/addDocCategory  ×××
删除文档知识点分类 /docCategory/deleteDocCategory  ×××

添加表单分类 /form/category/add
删除表单分类 /form/category/del
添加表单相似问 /form/flow/addSimilar  ✔✔✔
删除表单相似问 /form/flow/delSimilar  ✔✔✔
添加表单节点 /form/flow/addNode  ✔✔✔
删除表单节点 /form/flow/delNode  ✔✔✔

 */

const knowledgeHome = {
    /** 问答知识点 */
    postQaSimilarAdd: async function(data) {
        return http.post('/qa/addSimilar', data);
    },
    postQaSimilarDel: async function(data) {
        return http.post('/qa/delSimilar', data);
    },
    postQaRelAdd: async function(data) {
        return http.post('/qa/addRel', data);
    },
    postQaRelDel: async function(data) {
        return http.post('/qa/delRel', data);
    },


    /** 图谱知识点 */
    postGraphCategoryAdd: async function(data) {
        return http.post('/graph/category/add', data);
    },
    postGraphCategoryDel: async function(data) {
        return http.post('/graph/category/del', data);
    },
    postGraphNodeSimilarAdd: async function(data) {
        return http.post('/graph/node/addSimilar', data);
    },
    postGraphNodeSimilarDel: async function(data) {
        return http.post('/graph/node/delSimilar', data);
    },


    /** 多轮知识点 */
    postDialogCategoryAdd: async function(data) {
        return http.post('/dialog/category/add', data);
    },
    postDialogCategoryDel: async function(data) {
        return http.post('/dialog/category/delete', data);
    },
    postDialogSimilarAdd: async function(data) {
        return http.post('/dialog/addSimilar', data);
    },
    postDialogSimilarDel: async function(data) {
        return http.post('/dialog/delSimilar', data);
    },
    postDialogNodeAdd: async function(data) {
        return http.post('/dialog/node/add', data);
    },
    postDialogNodeDel: async function(data) {
        return http.post('/dialog/node/del', data);
    },


    /** 文档知识点 */
    postDocUpload: async function(data) {
        return http.post('/doc/upload', data);
    },
    postDocAdd: async function(data) {
        return http.post('/doc/addDoc', data);
    },
    postDocDel: async function(data) {
        return http.post('/doc/deleteDoc', data);
    },
    postDocCategoryAdd: async function(data) {
        return http.post('/docCategory/addDocCategory', data);
    },
    postDocCategoryDel: async function(data) {
        return http.post('/docCategory/deleteDocCategory', data);
    },


    /** 表单知识点 */
    postFormCategoryAdd: async function(data) {
        return http.post('/form/category/add', data);
    },
    postFormCategoryDel: async function(data) {
        return http.post('/form/category/del', data);
    },
    postFormFlowSimilarAdd: async function(data) {
        return http.post('/form/flow/addSimilar', data);
    },
    postFormFlowSimilarDel: async function(data) {
        return http.post('/form/flow/delSimilar', data);
    },
    postFormFlowNodeAdd: async function(data) {
        return http.post('/form/flow/addNode', data);
    },
    postFormFlowNodeDel: async function(data) {
        return http.post('/form/flow/delNode', data);
    },
}

export default knowledgeHome;